summaryrefslogtreecommitdiff
path: root/src/pages/blogs/[...slug].astro
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2024-11-15 00:54:33 +0200
committerKyren223 <Kyren223@proton.me>2024-11-15 00:54:33 +0200
commit27096e57380e4800c005e8dfb91286ef84935bce (patch)
tree4ecdd1d2f373d9bff5cd3a761351562307f84f49 /src/pages/blogs/[...slug].astro
parent74702d29acb3e6a7667aa443557f4c323ce118f8 (diff)
Some more experimental changes with blogs + minor edits to the ssh key
blog
Diffstat (limited to 'src/pages/blogs/[...slug].astro')
-rw-r--r--src/pages/blogs/[...slug].astro40
1 files changed, 28 insertions, 12 deletions
diff --git a/src/pages/blogs/[...slug].astro b/src/pages/blogs/[...slug].astro
index 3b15fc7..dbecb22 100644
--- a/src/pages/blogs/[...slug].astro
+++ b/src/pages/blogs/[...slug].astro
@@ -1,7 +1,5 @@
---
import { getCollection } from "astro:content";
-import Blog from "@layouts/Blog.astro";
-import Markdown from "@components/Markdown.astro";
import Terminal from "@layouts/Terminal.astro";
import BlogItem from "@components/BlogItem.astro";
@@ -19,19 +17,37 @@ const { Content } = await entry.render();
<Terminal path="blogs/">
<div class="w-full h-[65vh] overflow-y-auto pr-4">
- <div class="flex flex-col h-full m-0 p-0">
- <BlogItem
- title={entry.data.title}
- description={entry.data.description ?? ""}
- date={entry.data.date}
- />
- <div class="text-[130%] flex-grow">
+ <div class="text-[130%] h-full m-0 p-0">
+ <div class="text-[110%]">
+ <BlogItem
+ title={entry.data.title}
+ description={entry.data.description ?? ""}
+ date={entry.data.date}
+ />
+ </div>
+ <div class="markdown">
+ <h2>Somewhat of a long heading</h2>
<Content />
</div>
</div>
</div>
</Terminal>
-<!-- <Blog title=`/home/kyren/blogs/${entry.slug}`> -->
-<!-- <Content /> -->
-<!-- </Blog> -->
+<style is:global>
+ .markdown p {
+ padding-bottom: 1rem;
+ }
+ .markdown strong {
+ font-weight: bold;
+ }
+ .markdown h2 {
+ color: var(--secondary);
+ font-size: 125%;
+ padding-bottom: 0.5rem;
+ }
+ .markdown h3 {
+ color: var(--secondary);
+ font-size: 110%;
+ padding-bottom: 0.25rem;
+ }
+</style>